<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class AccessManager</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Interface AccessManager</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The access manager object.</p>
<p class="description"><p>Level 2 only</p><p>Acquired via <a href="../phpContentRepository/Workspace.html#methodgetAccessManager">Workspace::getAccessManager()</a>.</p></p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright &amp;copy; 2004-2005, Domain51</li>
				<li><span class="field">author:</span> PHP - Travis Swicegood &lt;<a href="mailto:travis@domain51.net">travis@domain51.net</a>&gt;</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/Workspace.html#methodgetAccessManager">Workspace::getAccessManager()</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_access_AccessManager_interface_php.html">/access/AccessManager.interface.php</a> (line <span class="field">38</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
								
				<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getPermissions" title="details" class="method-name">getPermissions</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$absPath</span>)
									</div>
								
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getSupportedPermissions" title="details" class="method-name">getSupportedPermissions</a>
										()
									</div>
								
				<div class="method-definition">
											<span class="method-result">bool</span>
										<a href="#isGranted" title="details" class="method-name">isGranted</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$absPath</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$permissions</span>)
									</div>
							</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodgetPermissions" id="getPermissions"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getPermissions</span> (line <span class="line-number">86</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the set of permissions that are TRUE for the item  at $absPath.</p>
	<ul class="tags">
				<li><span class="field">return:</span> A set of permissions encoded in a bitmask of permission constants    defined in <a href="../phpContentRepository/Permission.html">Permission</a></li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/PathNotFoundException.html">PathNotFoundException</a>    If no <a href="../phpContentRepository/Item.html">Item</a> exists at $absPath.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If an unexpected error occurs.</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/Permission.html">Permission</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getPermissions
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$absPath</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$absPath</span><span class="var-description">: An absolute path to an <a href="../phpContentRepository/Item.html">Item</a>.</span>			</li>
				</ul>
		
		
	</div>
<a name="methodgetSupportedPermissions" id="getSupportedPermissions"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getSupportedPermissions</span> (line <span class="line-number">96</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an array of <a href="../phpContentRepository/Permission.html">Permission</a> objects describing all permissions  supported by this repository.</p>
	<ul class="tags">
				<li><span class="field">return:</span> An array of <a href="../phpContentRepository/Permission.html">Permission</a>s.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getSupportedPermissions
		</span>
				()
			</div>
	
		
		
	</div>
<a name="methodisGranted" id="isGranted"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">isGranted</span> (line <span class="line-number">67</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the status of the item at $absPath regarding  the specified $permissions (under the rights held by current  <a href="../phpContentRepository/Ticket.html">Ticket</a>).</p>
	<ul class="tags">
				<li><span class="field">return:</span> TRUE if $permissions are true for the    <a href="../phpContentRepository/Item.html">Item</a> at $absPath; FALSE otherwise.</li>
				<li><span class="field">access:</span> public</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/PathNotFoundException.html">PathNotFoundException</a>    If no <a href="../phpContentRepository/Item.html">Item</a> exists at $absPath.</li>
				<li><span class="field">throws:</span> <a href="../phpContentRepository/Exceptions/RepositoryException.html">RepositoryException</a>    If an unexpected error occurs.</li>
				<li><span class="field">throws:</span> IllegalArgumentException    If $permissions specifies invalid permissions.</li>
				<li><span class="field">see:</span> <a href="../phpContentRepository/Permission.html">Permission</a></li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">bool</span>
		<span class="method-name">
			isGranted
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$absPath</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$permissions</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$absPath</span><span class="var-description">: An absolute path to an <a href="../phpContentRepository/Item.html">Item</a>.</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$permissions</span><span class="var-description">: A combination of one or more of the following constants encoded as a    bitmask value:    <ul><li><a href="../phpContentRepository/Permission.html#constADD_NODE">Permission::ADD_NODE</a></li><li><a href="../phpContentRepository/Permission.html#constSET_PROPERTY">Permission::SET_PROPERTY</a></li><li><a href="../phpContentRepository/Permission.html#constREMOVE_ITEM">Permission::REMOVE_ITEM</a></li><li><a href="../phpContentRepository/Permission.html#constREAD_ITEM">Permission::READ_ITEM</a></li></ul></span>			</li>
				</ul>
		
		
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Fri, 31 Dec 2004 10:15:07 -0600 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
	</p>
	</div></body>
</html>